package com.hlf.robot.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName robot_marry
 */
@TableName(value ="robot_marry")
@Data
public class RobotMarry implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * QQ号男方
     */
    private Integer qqMan;

    /**
     * QQ号女方
     */
    private Integer qqWomen;

    /**
     * 结婚时间
     */
    private Date marryDate;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 离婚时间
     */
    private Date marryOutDate;

    /**
     * 男方姓名
     */
    private String qqNameMan;

    /**
     * 女方姓名
     */
    private String qqNameWoman;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RobotMarry other = (RobotMarry) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getQqMan() == null ? other.getQqMan() == null : this.getQqMan().equals(other.getQqMan()))
            && (this.getQqWomen() == null ? other.getQqWomen() == null : this.getQqWomen().equals(other.getQqWomen()))
            && (this.getMarryDate() == null ? other.getMarryDate() == null : this.getMarryDate().equals(other.getMarryDate()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getMarryOutDate() == null ? other.getMarryOutDate() == null : this.getMarryOutDate().equals(other.getMarryOutDate()))
            && (this.getQqNameMan() == null ? other.getQqNameMan() == null : this.getQqNameMan().equals(other.getQqNameMan()))
            && (this.getQqNameWoman() == null ? other.getQqNameWoman() == null : this.getQqNameWoman().equals(other.getQqNameWoman()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getQqMan() == null) ? 0 : getQqMan().hashCode());
        result = prime * result + ((getQqWomen() == null) ? 0 : getQqWomen().hashCode());
        result = prime * result + ((getMarryDate() == null) ? 0 : getMarryDate().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getMarryOutDate() == null) ? 0 : getMarryOutDate().hashCode());
        result = prime * result + ((getQqNameMan() == null) ? 0 : getQqNameMan().hashCode());
        result = prime * result + ((getQqNameWoman() == null) ? 0 : getQqNameWoman().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", qqMan=").append(qqMan);
        sb.append(", qqWomen=").append(qqWomen);
        sb.append(", marryDate=").append(marryDate);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", marryOutDate=").append(marryOutDate);
        sb.append(", qqNameMan=").append(qqNameMan);
        sb.append(", qqNameWoman=").append(qqNameWoman);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}